package bebetes;

import java.awt.Color;
import java.awt.Graphics;

import visu.Champ;

public class ChampiBleu extends Champi {
	
	protected Color color;
	protected int x;
	protected int y;
	protected ChampDeBebetes champ;
	
	public ChampiBleu(ChampDeBebetes champ, int x, int y) {
		this.champ = champ;
		this.color = Color.BLUE;
		this.x = x;
		this.y = y;
	}
	
	@Override
	public Color getCouleur() {
		return color;
	}

	@Override
	public void seDessine(Graphics g) {
		g.setColor(color);
        g.fillOval(x,y,TAILLEGRAPHIQUE,TAILLEGRAPHIQUE);
	}

	@Override
	public int getX() {
		return x;
	}

	@Override
	public void setX(int x) {
		this.x = x;
	}

	@Override
	public int getY() {
		return y;
	}

	@Override
	public void setY(int y) {
		this.y = y;
	}

	@Override
	public Champ getChamp() {
		return champ;
	}

}
